package com.happycat.console.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.happycat.console.commen.aspactj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;


/**
 * 商品对象 cat_goods
 * 
 * @author verne
 * @date 2020-07-18
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("cat_goods")
@ApiModel(value="商品对象", description="商品对象数据")
public class CatGoods implements Serializable {

private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 商品种类 */
    @Excel(name = "商品种类")
    @ApiModelProperty(value = "商品种类")
    private Long gategoryId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty(value = "商品名称")
    private String name;

    /** 商品图片 */
    @Excel(name = "商品图片")
    @ApiModelProperty(value = "商品图片")
    private String goodsImage;

    /** 商品描述 */
    @Excel(name = "商品描述")
    @ApiModelProperty(value = "商品描述")
    private String content;

    /** 代币类型 */
    @Excel(name = "代币类型")
    @ApiModelProperty(value = "代币类型")
    private String exchangeType;

    /** 代币值 */
    @Excel(name = "代币值")
    @ApiModelProperty(value = "代币值")
    private Integer exchangeNumber;

    /** 每日限购 */
    @Excel(name = "每日限购")
    @ApiModelProperty(value = "每日限购")
    private Integer maxBuy;

    /** 上架时间 */
    @Excel(name = "上架时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上架时间")
    private Date addedTime;

    /** 创建人 */
    @ApiModelProperty(value = "上架时间")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private Integer status;
}
